package com.cnswhy.cloud.server.comsumer;

import com.cnswhy.cloud.security.starter.annotation.EnableCnswhyCloudResourceServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Repository;

@EnableCnswhyCloudResourceServer
@SpringBootApplication
@MapperScan(
        basePackages = {"com.cnswhy.cloud",},
        annotationClass = Repository.class)
@ComponentScan({"com.cnswhy.cloud"})
@EnableScheduling
public class CnswhyServerConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(CnswhyServerConsumerApplication.class, args);
    }

}
